﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Assignment1
{
    public partial class Assignment1Launcher : Form
    {
        public Assignment1Launcher()
        {
            InitializeComponent();
        }

        //************************************************************************
        //*
        //*  Run the Cinama Locator Form
        //*
        //************************************************************************

        private void _runCinamaButton_Click(object sender, EventArgs e)
        {
            CinemaLocatorForm form = new CinemaLocatorForm();

            // show the form as modal
            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
            }
        }

        //************************************************************************
        //*
        //*  Run the Weather Forcasting Form
        //*
        //************************************************************************

        private void _runWeatherForcastButton_Click(object sender, EventArgs e)
        {
            WeatherForcastingForm form = new WeatherForcastingForm();

            // show the form as modal
            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
            }
        }

        //************************************************************************
        //*
        //*  Run the service testing application from assignment 1 part 1
        //*
        //************************************************************************

        private void button1_Click(object sender, EventArgs e)
        {
            TestA1P1Service form = new TestA1P1Service();

            // show the form as modal
            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
            }
        }

        //************************************************************************
        //*
        //*  Run the web browser form (parts 3-8 of assignment 1)
        //*
        //************************************************************************

        private void _runBrowserButton_Click(object sender, EventArgs e)
        {
            WebBrowserForm form = new WebBrowserForm();

            // show the form as modal
            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
            }
        }

        //************************************************************************
        //*
        //*  Run the currency convertor form (Assignment1 part 2)
        //*
        //************************************************************************

        private void _currencyConvertorButton_Click(object sender, EventArgs e)
        {
            CurrencyConvertorForm form = new CurrencyConvertorForm();

            // show the form as modal
            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
            }
        }

       
    }
}
